const columns = [{
    prop: 'user',
    label: '用户名',
    width: 120
}, {
    prop: 'name',
    label: '姓名',
    width: 120
}, {
    prop: 'numberId',
    label: '工号',
    width: 100
}, {
    prop: 'jobTitle',
    label: '岗位',
    width: 100
}, {
    prop: 'institution',
    label: '所属机构',
    width: 200
}, {
    prop: 'businessCountOfFinished',
    label: '任务完成数',
    width: 100
}, {
    prop: 'taskFinishedPercent',
    label: '任务完成率',
    width: 100
}, {
    prop: 'businessCountOfPassed',
    label: '业务通过数',
    width: 100
}, {
    prop: 'businessPassedPercent',
    label: '业务通过率',
    width: 100
}, 
{
    label: '操作',
    width: 150,
    operations: [{
        prop: 'edit',
        label: '查看任务',
        icon: 'el-icon-view'
    }]
}
]

const traineeExcelColumns = [{
    prop: 'user',
    label: '用户名',
    width: 120
}, {
    prop: 'name',
    label: '姓名',
    width: 120
}, {
    prop: 'numberId',
    label: '工号',
    width: 100
}, {
    prop: 'jobTitle',
    label: '岗位',
    width: 100
}, {
    prop: 'institution',
    label: '所属机构',
    width: 200
}, {
    prop: 'businessCountOfFinished',
    label: '任务完成数',
    width: 100
}, {
    prop: 'taskFinishedPercent',
    label: '任务完成率',
    width: 100
}, {
    prop: 'businessCountOfPassed',
    label: '业务通过数',
    width: 100
}, {
    prop: 'businessPassedPercent',
    label: '业务通过率',
    width: 100
}
]

const taskColumns = [
    {
        prop: 'id',
        label: '任务编号',
        width: 80
    }, {
        prop: 'name',
        label: '任务名称',
        width: 100
    }, {
        prop: 'plainTime',
        label: '计划期限',
        width: 180
    }, {
        prop: 'creatorName',
        label: '创建人',
        width: 100
    }, {
        label: '操作',
        width: 140,
        operations: [{
            prop: 'edit',
            label: '学习详情'
        }]
    }
]

const oTaskColumns = [
    {
        prop: 'id',
        label: '任务编号',
        width: 130
    }, {
        prop: 'name',
        label: '任务名称',
        width: 130
    }, {
        prop: 'plainTime',
        label: '计划期限',
        width: 220
    }, {
        prop: 'creatorName',
        label: '创建人',
        width: 130
    }
]

const detailColumns = [
    {
        prop: 'name',
        label: '业务名称',
        width: 100
    }, {
        prop: 'opStartTime',
        label: '操作时间',
        width: 150
    }, {
        prop: 'opTimes',
        label: '操作次数',
        width: 100
    }, {
        prop: 'score',
        label: '得分',
        width: 80
    }, {
        prop: 'timeCost',
        label: '操作时长',
        width: 100
    }, {
        prop: 'grade',
        label: '操作评级',
        width: 100
    }
]

const oColumns = [
    {
        prop: 'organizationTitle',
        label: '机构名称',
        width: 200
    }, {
        prop: 'employeesNumberOfAssigned',
        label: '学员总数',
        width: 200
    }, {
        prop: 'taskCountOfAssigned',
        label: '任务总数',
        width: 200
    }, {
        prop: 'organizationOfPassed',
        label: '机构完成率',
        width: 200
    }, 
    {
        label: '操作',
        width: 200,
        operations: [{
            prop: 'oEdit',
            label: '查看任务'
        }]
    }
]


const enableOptions = [{
    id: true,
    title: '是'
}, {
    id: false,
    title: '否'
}]

export default {
    columns,
    traineeExcelColumns,
    oColumns,
    taskColumns,
    oTaskColumns,
    detailColumns,
    enableOptions
}